<?php

namespace Sifast\ProjectBundle\Admin;

use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;

class SalaireBaseAdmin extends Admin
{
 
    protected function configureFormFields(FormMapper $formMapper)
    {
        $formMapper
        ->with('L1')
            ->add('ctypeSath','text',array(
                'label'=> 'Type SATH (Salaire Annuelle THéorique:',))
            ->add('complementRtt','text',array(
                'label'=> 'Complément (salaire) RTT:',))
                ->end()
                ->with('L2')
            ->add('complementSalaire','text',array(
                'label'=> 'Complément salaire:',))
            ->add('autreComplement','text',array(
                'label'=> 'Autre complément:',))
                ->end()
                ->with('L3')
            ->add('salaire','text',array(
                'label'=> 'Salaire mensuel/forfait:',))
            ->end(); 
            
            
    }

    protected function configureDatagridFilters(DatagridMapper $datagridMapper)
    {
        $datagridMapper
            ->add('ctypeSath')
            ->add('complementRtt')
            ->add('complementSalaire')
            ->add('salaire') 
            ->add('autreComplement');
            
    }

    protected function configureListFields(ListMapper $listMapper)
    {
        $listMapper
            ->addIdentifier('ctypeSath')
            ->add('complementRtt')
            ->add('complementSalaire')
            ->add('salaire') 
            ->add('autreComplement');
            
            }
}